#include "first.h"
#include "second.h"

#include <iostream>

/*
void checkMe (CFirst &first) {
	first.speak ();
}
 */

int main () {
	CFirst fir;
	return 0;
}

/*
 *	output
 *
 [sgupta@rhel6x86 virtual_destructor]$ make
g++ -g -pedantic -Wall -lstdc++ -lpthread -ldl -lm -Wl,-rpath,. main.o second.o first.o -o test
[sgupta@rhel6x86 virtual_destructor]$ make clean;make
rm -rf *.o test
g++ -g -O0 -D_THREAD_SAFE -Wextra -pedantic -Wall -c -fPIC -Wno-deprecated  main.cpp
main.cpp: In function ‘int main()’:
main.cpp:13: error: cannot declare variable ‘fir’ to be of abstract type ‘CFirst’
first.h:4: note:   because the following virtual functions are pure within ‘CFirst’:
first.h:7: note: 	virtual CFirst::~CFirst()
make: *** [main.o] Error 1
[sgupta@rhel6x86 virtual_destructor]$ make
 */
